From: Katsumi Yamaoka Date: Thu, 27 Jan 2011 13:20:55 +0000 (+0000) Subject: shr.el (shr-expand-newlines, shr-previous-newline-padding-width): Use plist-get inste... X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~5056 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=63ee3514cd07f3b552e10fe39268760dd0fea70c;p=emacs.git shr.el (shr-expand-newlines, shr-previous-newline-padding-width): Use plist-get instead of the cl function getf. --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 9985891e289..52bac581b6d 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,8 @@ +2011-01-27 Katsumi Yamaoka + + * shr.el (shr-expand-newlines, shr-previous-newline-padding-width): + Use plist-get instead of the cl function getf. + 2011-01-27 Glenn Morris * gnus-util.el (float-time): Get rid of compiler warning, again. diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index 4568f45dbb5..f3c75ccd6a3 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el @@ -649,8 +649,9 @@ ones, in case fg and bg are nil." (concat (mapconcat (lambda (overlay) - (let ((string (getf (overlay-properties overlay) - 'before-string))) + (let ((string (plist-get + (overlay-properties overlay) + 'before-string))) (if (not string) "" (overlay-put overlay 'before-string "") @@ -669,7 +670,8 @@ ones, in case fg and bg are nil." (dolist (overlay overlays) (setq previous-width (+ previous-width - (length (getf (overlay-properties overlay) 'before-string))))) + (length (plist-get (overlay-properties overlay) + 'before-string))))) (+ width previous-width)))) (defun shr-put-color-1 (start end type color)